from django.contrib import admin
from django.urls import path,include,re_path
from django.conf import settings
from django.views.static import serve
from crouse.views import CateGoryView,NowCate
from crouse import views
from rest_framework.routers import DefaultRouter
urlpatterns = [
    path('allcate/',CateGoryView.as_view()),
    path('cate/',NowCate.as_view()),
    path('direction/',views.Direction.as_view()),
    path('category/',views.ChildCate.as_view()),
    # path('course/',views.Course.as_view()),
    path('list/',views.CourseListView.as_view()),
    path('detailes/',views.CrousexqView.as_view()),
    path('upload/',views.Upload.as_view()),
    path('hotword/',views.HotWord.as_view())
]
router=DefaultRouter()
router.register('hot',views.HotWordView,basename="CourseModel")
urlpatterns+=router.urls